package com.yurendao.shop.cart.web;

import com.yurendao.shop.cart.domain.Cart;
import com.yurendao.shop.user.domain.User;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * Created by kong on 15/10/13.
 */
@RequestMapping("/cart")
public class CartController {

    @RequestMapping(value = "/ajaxDeleteCartItems",method = RequestMethod.POST)
    public void ajaxDeleteCartItems(List<Cart> carts){

    }

    @RequestMapping(value = "/addCartItems",method = RequestMethod.POST)
    public void ajaxAddCartItem(Cart cart){

    }

    @RequestMapping(value = "/updateCartItem",method = RequestMethod.POST)
    public void ajaxUpdateCartItem(Cart cart){

    }

    @RequestMapping(value = "/getCartItems",method = RequestMethod.GET)
    public String getCartItems(User user,ModelMap map){


        return "/cart/items";
    }



}
